package com.whli.jee.common.constant;

/**
 * @Desc 类作用描述
 * @Author whli
 * @Version 1.0
 * @Date 2018/5/29 16:24
 */
public class SysConstants {
    /**
     * 存放验证密钥token的header
     */
    public static final String AUTHORIZATION = "Authorization";

    /**
     * 登录用户名
     */
    public static final String LOGIN_USER = "current_user";

    public static final String LOGIN_USER_NAME = "current_user_name";

    public static final String LOGIN_USER_ID = "current_user_id";

    /**
     * 登录一次限制条件
     */
    public static final String KICTOUT = "KICTOUTMAP";
    public static final String KICTOUT_PC_PREFIX = "PC_";
    public static final String KICTOUT_MOBILE_PREFIX = "PDA_";

    /**
     * 设置登录仓库
     */
    public static final String  WARE_HOUSE = "whKey";

    /**
     * token过期
     */
    public static final int STATUS_FAIL =1;
    public static final String TOKEN_FAIL_CODE = "-10005";
    public static final String TOKEN_FAIL_MESSAGE ="token过期,请重新登陆";

    public static final Long CURRENT_TIME_MILLIS = System.currentTimeMillis();

    /**
     * 用户目录
     */
    public static final String USER_HOME = System.getProperty("user.home")+"/upload/";
}
